package com.eshore.norm.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 弹性公网IP监控
 * </p>
 *
 * @author chenjl
 * @since 2024-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class NormFloatipMonitor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 资源池id
     */
    @ApiModelProperty(value = "资源池id")
    private Long configId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateDate;

    /**
     * 入包量
     */
    @ApiModelProperty(value = "入包量")
    @TableField("externalInPkts")
    private Long externalInPkts;

    /**
     * 出包量
     */
    @ApiModelProperty(value = "出包量")
    @TableField("externalOutPkts")
    private Long externalOutPkts;

    /**
     * 每秒从公网传入的数据量kb/s
     */
    @ApiModelProperty(value = "每秒从公网传入的数据量kb/s")
    @TableField("externalInRate")
    private Float externalInRate;

    /**
     * 每秒从公网流出的数据量kb/s
     */
    @ApiModelProperty(value = "每秒从公网流出的数据量kb/s")
    @TableField("externalOutRate")
    private Float externalOutRate;

    /**
     * 丢包率
     */
    @ApiModelProperty(value = "丢包率")
    @TableField("packetLossRate")
    private Float packetLossRate;


}
